import java.io.File;
import java.io.FileOutputStream;
public class project14 {
    public static void main(String[] args) {
        String filepath="E:\\湖北师范大学\\test.txt";
        File file=new File(filepath);
        try{
            FileOutputStream outputStream=new FileOutputStream(file);
            String content="hello,class2211";
            byte[] bytes=content.getBytes();
            outputStream.write(bytes);
            outputStream.close();
        }catch (Exception e){
            throw new RuntimeException(e);
        }
    }
}
